﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UncleBobWebService.Models;
using UncleBobWebService.ServiceRequester;
using UncleBobApplicantWebService.ApplicantWebService;



namespace UncleBobApplicantWebService.Controllers
{
    public class HMMainMenuController : Controller
    {
        private UncleBobApplicantWebService.ApplicantWebService.WebServiceClient mApplicantClient = new UncleBobApplicantWebService.ApplicantWebService.WebServiceClient();

        //
        // GET: /HMMainMenu/

        public ActionResult MainMenu()
        {
            return View(Session["User"] as HMRegisterModel);
        }

        public ActionResult FormAction(FormCollection collection)
        {
            if (collection["cmdViewApplicants"] != null)
            {
                return RedirectToAction("ApplicantList", "HMMainMenu");
            }

            return RedirectToAction("Index", "Welcome");
        }

        public ActionResult ApplicantList()
        {
            return View();
        }

    }
}



